package top.roadvast.pdshopping.config;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 郭泽鹏
 * @Date 2021/12/29 9:17
 * @Version 1.0
 * @Description rabbitmq配置类：用于测试主题模式
 * 通过日志级别和操作用户获取日志
 */
@Configuration
public class TopicLogConfig {
    //创建交换机
    @Bean
    public TopicExchange getTopicLogExchange() {
        return new TopicExchange("pd_log_topic_exchange", true, false);
    }
}
